
#ifndef __CANTASK_H
#define	__CANTASK_H

#include <stdint.h>
#include "dataproc.h"
#include "pulse.h"
#include "rtctime.h"
#include "mytype.h"
#include "common.h"

#ifdef	__cplusplus
extern "C" {
#endif

#define CAN_DBG_EN		1
	
#if (DBG_EN+CAN_DBG_EN) > 1
#define can_dbg_print          sys_printf
#define can_dbg_puts           sys_puts
#define can_isr_print(...)		//printf
#else
#define can_dbg_print(...)
#define can_dbg_puts(...)
#define can_isr_print(...)
#endif
	
#ifdef   _CANTASK_MODULE_
#define  MY_EXT
#else
#define  MY_EXT  extern
#endif  


#undef MY_EXT

#ifdef	__cplusplus
}
#endif

#endif	/* __SYSTASK_H */
